<template>
  <div class="main">
    <headerVue class="header"></headerVue>
    <div class="content">
      <menuVue class="menu"></menuVue>
      <div class="router-content">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import headerVue from './component/header.vue';
import menuVue from './component/menu.vue'
export default {
  components: {
    headerVue,
    menuVue
  }

}
</script>

<style lang="less" scoped>
.main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  .header {
    height: 80px;
    line-height: 80px;
    padding-left: 50px;
    color: rgb(66, 150, 138);
    background: rgb(36, 38, 45);
  }
  .content {
    flex: 1;
    display: flex;
    .menu {
      width: 200px;
    }
    .router-content {
      padding: 20px;
      flex: 1;
    }
  }
}
</style>